/**
 *
 */
package info.motteke.kurumi.swt;

import info.motteke.kurumi.AnimationImage.Frame;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.eclipse.swt.graphics.Image;

public class SwtAnimationFrame implements Frame<Image> {

    private static final Log log = LogFactory.getLog(SwtAnimationFrame.class);

    private final Image image;

    private final int wait;

    public SwtAnimationFrame(Image image, int wait) {
        this.image = image;
        this.wait = wait;

        log.info(wait + "msのウェイトを設定しました。");
    }

    @Override
    public Image getImage() {
        return image;
    }

    @Override
    public int getWait() {
        return wait;
    }

    @Override
    public void dispose() {
        image.dispose();
    }

}